-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔧 [open-zaak/open-zaak#1629] Refactor settings module #102
Conversation
0e4f269
to
f3d54a4
Compare
use base settings from open-api-framework and add staging/production settings
* fix interpolation issue in docker-compose * upgrade postgres to 12 * add redis container * add DISABLE_2FA envvar * add CACHE_DEFAULT and CACHE_AXES
_fonts.scss relied on font assets that were in Django 2.2.x, but this causes errors when using ManifestStaticFilesStorage
as it was previously broken using 0.14.1
fb186af
to
95b0f4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
All of the config variables are in the open-api-framework
as far as I can tell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cleaned conf/base.py is 🤌
FIXTURE_DIRS = (os.path.join(DJANGO_PROJECT_DIR, "fixtures"),) | ||
|
||
LOGGING_DIR = os.path.join(BASE_DIR, "log") | ||
LANGUAGE_CODE = "en-us" # FIXME should this be "nl-nl"? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question! Maybe @joeribekker could help us?
* remove unused setting * add warning in changelog to add Redis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
partially fixes open-zaak/open-zaak#1629
Related PR: maykinmedia/open-api-framework#19 (once that is merged, I'll do a release and remove the git dependency from Objecttypes)
I moved the settings from
base.py
to a genericbase.py
in Open API Framework (see maykinmedia/open-api-framework#19). I'm not sure if it will be possible to do the same for the environment specific settings (production, dev, docker etc.), but that might be worth looking into at some point.I also had to make several fixes with regards to the docker-compose setup and OIDC.
Some things that I noticed:
VERSION_TAG
, I changed this toRELEASE
TIME_ZONE
andLANGUAGE_CODE
differ from Open Zaak